// RegisterBox.h: interface for the CRegisterBox class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_REGISTERBOX_H__698FB159_A693_11D2_947E_00C04F9902DF__INCLUDED_)
#define AFX_REGISTERBOX_H__698FB159_A693_11D2_947E_00C04F9902DF__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "MyAddressListBox.h"

class CRegisterBox : public CMyAddressListBox  
{
public:
	virtual void DecrementData();
	virtual void IncrementData();

	void SetRegValue(int nIndex,word data);
	word GetRegValue(int nIndex);
	char * GetRegName(int nIndex);
	void Init();
	virtual void SetIndividualProperty();
	int RefreshStrings(int addr=0,BOOL bCheckModified=TRUE);
	//virtual void OnVirtualLButtonDown(UINT nFlags, CPoint point);
	CRegisterBox();
	virtual ~CRegisterBox();

protected:
    // This array stores the previous values in the register.  
    // This is used by display functions to highlight modified register values
    int *m_aNewValue;  
private:
	virtual void EnterData();
};

#endif // !defined(AFX_REGISTERBOX_H__698FB159_A693_11D2_947E_00C04F9902DF__INCLUDED_)
